home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Stolen Data 3
/
Stolen Data 3.adf
/
MAG-TEXT
/
CODE3a
< prev
next >
Wrap
Text File
|
1989-01-01
|
826b
|
31 lines
difference between using Rs to create
variable lists rather than Dc.
Remember these labels we have created
are just offsets, but if we reserve an
area of memory large enough to
accomodate the variables, and then
assign an address register to this
memory area, we can refer to the
variables VIA the address register. So
instead of Move Xcoord,d0 we might have
Move Xcoord(a5),d0 ,this is much faster
than absolute addressing (although the
same speed as PC relative but dont
forget you can't use PC relative
addressing mode in the second operand)
and more memory efficient.
Examples. A variable list definition
Rsreset
Coords Rs.w 3
Counter Rs.w 1
Intvec Rs.l 1
Varisize Rs.b 0
Variables Dcb.b Varisize
;------ Memory allocation
Rsset $70000